// 异步组件加载 Code Splitting
import asyncComponent from '../components/AsyncComponent';
import React, { Component } from 'react';
const Home = asyncComponent(() => import('../components/Index/index.jsx'));
const Notes = asyncComponent(() => import('../components/Notes/index.jsx'));
const Type = asyncComponent(() => import('../components/Type/index.jsx'));
const Login = asyncComponent(() => import('../components/Login/index.jsx'));
const Group = asyncComponent(() => import('../components/Group/index.jsx'));
const MenuManager = asyncComponent(() => import('../components/MenuManager/index.jsx'));
const Service = asyncComponent(() => import('../components/Service/index.jsx'));
const MemberUser = asyncComponent(() => import('../components/MemberUser/index.jsx'));
const MemberNetwork = asyncComponent(() => import('../components/MemberUser/index.jsx'));
const OrgManager = asyncComponent(() => import('../components/OrganizationManager/index.jsx'));
const ModifyPwd = asyncComponent(() => import('../components/ModifyPwd/index.jsx'));
const Chaincode = asyncComponent(() => import('../components/Chaincode/index.jsx'));
const Contract = asyncComponent(() => import('../components/Contract/index.jsx'));
const routes = [
  {
    path: '/',
    exact: 'true',
    component: Home,
  },
  {
    path: '/admin/user',
    component: Home,

  }, {
    path: '/admin/gateLog',
    component: Notes,
  }, {
    path: '/admin/groupType',
    component: Type,
  }, {
    path: '/admin/menu',
    component: MenuManager,
  }, {
    path: '/admin/group',
    component: Group,
  }, {
    path: '/auth/service',
    component: Service,
  }, {
    path: '/member/user',
    component: MemberUser,
  }, {
    path: '/member/network',
    component: MemberNetwork,
  }, {
    path: '/org/organizationManager',
    component: OrgManager,
  }, {
    path: '/user/ModifyPwd',
    component: ModifyPwd,
  }, {
    path: '/chaincode/management',
    component: Chaincode,
  }, {
    path: '/contract/management',
    component: Contract
  }

];

export default routes;
